package commands

import (
	"github.com/spf13/cobra"
	console2 "golang-manage-admin/console"
	_ "golang-manage-admin/providers"
)

var ConsoleCmd = &cobra.Command{
	Use:   "console",
	Short: "执行命令",
	Args:  cobra.ExactArgs(1),
	//命令执行
	Run: func(cmd *cobra.Command, args []string) {

		//执行动作
		action := args[0]
		console := console2.Console{}
		console.Init()

		console.Run(action)
	},
}
